package com.yc.cloud.admin.vo.dashboard;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "告警类型分布")
public class AlarmDistributionVO {

    @Schema(description = "告警类型列表")
    private List<AlarmTypeItem> list;

    @Data
    @Schema(description = "告警类型项")
    public static class AlarmTypeItem {
        
        @Schema(description = "告警类型ID (算法ID)")
        private Long algorithmId;
        
        @Schema(description = "告警类型名称")
        private String name;
        
        @Schema(description = "告警类型占比(%)")
        private Double percentage;
        
        @Schema(description = "告警数量")
        private Long count;

        @Schema(description = "告警类型名称简写")
        private String shortName;
    }
}